嗨,我是 Fly,用 Ruby 寫 Chatbot 並挑戰30天分享心得
為確保不會沒靈感
每日含 Ruby 解題增加內容
https://www.hackerrank.com/domains/tutorials/30-days-of-code
arr = gets.rstrip.split(' ').map(&:to_i)
#!/bin/ruby
require 'json'
require 'stringio'
n = gets.to_i
arr = gets.rstrip.split(' ').map(&:to_i)
print arr.reverse.join(' ')